package day19.pack3;

import day19.pack1.Huawei;
import day19.pack1.Phone;
import day19.pack2.NcStation;
import day19.pack2.Station;

public class Test {
    public static void main(String[] args) {
        // 具体被代理对象
        NcStation ncStation = new NcStation();
        DynamicProxy dynamicProxy = new DynamicProxy(ncStation);
        // 创建代理对象
        Station station = dynamicProxy.getProxyInstance();
        station.sellTicket();
    }
}
